package com.kkks.spring_rest.tick.model;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * AbstractWhoSkuKey entity provides the base persistence definition of the
 * WhoSkuKey entity. @author MyEclipse Persistence Tools
 */
@MappedSuperclass
public abstract class AbstractWhoSkuKey implements java.io.Serializable {

	// Fields

	private Short skuId;
	private String skuKey;
	private Short catId;
	private Boolean attrType;
	private Boolean attrGroup;
	private Integer gmtCreated;
	private Integer gmtModify;

	// Constructors

	/** default constructor */
	public AbstractWhoSkuKey() {
	}

	/** full constructor */
	public AbstractWhoSkuKey(String skuKey, Short catId, Boolean attrType,
			Boolean attrGroup, Integer gmtCreated, Integer gmtModify) {
		this.skuKey = skuKey;
		this.catId = catId;
		this.attrType = attrType;
		this.attrGroup = attrGroup;
		this.gmtCreated = gmtCreated;
		this.gmtModify = gmtModify;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "sku_id", unique = true, nullable = false)
	public Short getSkuId() {
		return this.skuId;
	}

	public void setSkuId(Short skuId) {
		this.skuId = skuId;
	}

	@Column(name = "sku_key", nullable = false, length = 30)
	public String getSkuKey() {
		return this.skuKey;
	}

	public void setSkuKey(String skuKey) {
		this.skuKey = skuKey;
	}

	@Column(name = "cat_id", nullable = false)
	public Short getCatId() {
		return this.catId;
	}

	public void setCatId(Short catId) {
		this.catId = catId;
	}

	@Column(name = "attr_type", nullable = false)
	public Boolean getAttrType() {
		return this.attrType;
	}

	public void setAttrType(Boolean attrType) {
		this.attrType = attrType;
	}

	@Column(name = "attr_group", nullable = false)
	public Boolean getAttrGroup() {
		return this.attrGroup;
	}

	public void setAttrGroup(Boolean attrGroup) {
		this.attrGroup = attrGroup;
	}

	@Column(name = "gmt_created", nullable = false)
	public Integer getGmtCreated() {
		return this.gmtCreated;
	}

	public void setGmtCreated(Integer gmtCreated) {
		this.gmtCreated = gmtCreated;
	}

	@Column(name = "gmt_modify", nullable = false)
	public Integer getGmtModify() {
		return this.gmtModify;
	}

	public void setGmtModify(Integer gmtModify) {
		this.gmtModify = gmtModify;
	}

}